class Solution:
    def canBeTypedWords(self, text: str, brokenLetters: str) -> int:
        words = text.split()
        ans = len(words)
        for i in words:
            for j in brokenLetters:
                if j in i:
                    ans -= 1
                    break
        return ans